package com.dearbinge.data.pojo.comment.vo;


import com.dearbinge.utils.Base64Util;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;

/**
 * 评论
 *
 * @author wes
 * @date 22:49 2019/1/4
 */
public class CommentReplyVO implements Serializable {

    /**
     * 表名称(评论表或回复表)
     */
    @ApiModelProperty(value = "表名称(评论表或回复表)")
    @Column(name = "table_name")
    private String tableName;

    /**
     * 当前id（评论表的id或回复表的id）
     */
    @ApiModelProperty(value = "当前id")
    @Column(name = "this_id")
    private String thisId;

    /**
     * 评论的内容或回复的内容
     */
    @ApiModelProperty(value = "评论的内容或回复的内容")
    @Column(name = "this_content")
    private String thisContent;

    /**
     * 这条评论或回复属于哪个用户
     */
    @ApiModelProperty(value = "这条评论或回复属于哪个用户")
    @Column(name = "this_name")
    private String thisName;

    /**
     * 对哪条动态信息的id
     */
    @ApiModelProperty(value = "对哪条动态信息的id")
    @Column(name = "entity_id")
    private String entityId;

    /**
     * 对哪条评论回复，这个评论的id
     */
    @ApiModelProperty(value = "对哪条评论回复，这个评论的id")
    @Column(name = "before_id")
    private String beforeId;

    /**
     * 旧的评论内容
     */
    @ApiModelProperty(value = "对哪条评论回复，这个评论的内容")
    @Column(name = "before_content")
    private String beforeContent;

    /**
     * 旧的评论用户名称
     */
    @ApiModelProperty(value = "对哪条评论回复，这个评论的属于哪个用户")
    @Column(name = "before_name")
    private String beforeName;

    /**
     * 用户头像
     */
    @ApiModelProperty(value = "当前评论或回复的用户头像")
    @Column(name = "head_img")
    private String headImg;

    /**
     * 是否点赞
     */
    @ApiModelProperty(value = "是否点赞")
    @Column(name = "thumbs")
    private Boolean thumbs;

    /**
     * 该评论的用户id
     */
    @ApiModelProperty(value = "当前评论或回复的用户id")
    @Column(name = "user_id")
    private String userId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 点赞数
     */
    @ApiModelProperty(value = "点赞数")
    private Integer thumbsCount;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getThisId() {
        return thisId;
    }

    public void setThisId(String thisId) {
        this.thisId = thisId;
    }

    public String getThisContent() {
        return thisContent;
    }

    public void setThisContent(String thisContent) {

        this.thisContent = thisContent;
    }

    public String getThisName() {

        return thisName;
    }

    public void setThisName(String thisName) {
        //修改编码
        this.thisName = Base64Util.decodeData(String.valueOf(thisName));
    }

    public String getEntityId() {
        return entityId;
    }

    public void setEntityId(String entityId) {
        this.entityId = entityId;
    }

    public String getBeforeId() {
        return beforeId;
    }

    public void setBeforeId(String beforeId) {
        this.beforeId = beforeId;
    }

    public String getBeforeContent() {
        return beforeContent;
    }

    public void setBeforeContent(String beforeContent) {
        this.beforeContent = beforeContent;
    }

    public String getBeforeName() {
        return beforeName;
    }

    public void setBeforeName(String beforeName) {
        this.beforeName = Base64Util.decodeData(String.valueOf(beforeName));
    }


    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Boolean getThumbs() {
        return thumbs;
    }

    public void setThumbs(Boolean thumbs) {
        this.thumbs = thumbs;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }


    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getThumbsCount() {
        return thumbsCount;
    }

    public void setThumbsCount(Integer thumbsCount) {
        this.thumbsCount = thumbsCount;
    }


}